home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: nntp.coast.net!torn!nott!emr1!jagrant
- From: jagrant@emr1.emr.ca (John Grant)
- Subject: Re: Off topic post
- Message-ID: <DLz02r.GFG@emr1.emr.ca>
- Organization: Energy, Mines, and Resources, Ottawa
- References: <TANMOY.96Jan28235629@qcd.lanl.gov> <DLyM02.9zn@emr1.emr.ca> <4ejfuc$i80@solutions.solon.com>
- Date: Tue, 30 Jan 1996 01:28:03 GMT
-
- In article <4ejfuc$i80@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:
- >In article <DLyM02.9zn@emr1.emr.ca>, John Grant <jagrant@emr1.emr.ca> wrote:
- >>Yes, I consider it to be quite rude. Also elitist and snobby.
- >>You refused to even consider the question and wrote it off
- >>immediately upon seeing the word 'far'. That's like telling
- >>a little old lady that you won't help her cross the street
- >>because she is wearing a red coat and you *hate* the colour red.
- >
- >No, it's like seeing a little old lady shoot the box that controls
- >the walk signal, and then refusing to help her cross the street.
- If you think the use of 'far' has destroyed the code, you
- are sadly and badly mistaken.
-
- This just confirms my observation that this group is populated
- by far too many purist, elitist unix bigots who think they have
- the exclusive rights to use and know C and only on unix of course.
- It's not 'your' language, you twits! You also seem to think that
- any code that just might come from your mortal arch-enemy
- DOS/Windows/Microsoft platforms is tainted & unworthy of your
- consideration. Otherwise, why would you have such a vendetta
- against the use of 'far' or 'near'?
-
- >>You know what the keyword 'far' does and you know that it is
- >>irrelevant to the question or code, so why not just ignore it and
- >>answer the question. You still could have made a comment about
- >>the non-conforming code and then continued on to answer the question.
- >
- >I don't know for sure what far does, and I know for sure that it *does*
- >affect a fair amount of code.
- >One of two things is true:
- >1. The code makes perfectly good sense without "far".
- >2. The code depends on "far" having specific semantics.
-
- If the code makes perfectly good sense without it, can't
- you just ignore that part of it and get on with it?
-
- >If 2 holds, the question is not about C.
- >If 1 holds, the word "far" can and should be omitted.
- >Consider; Tanmoy has a lot of experience with C. Tanmoy has finite time.
- [...support for Tanmoy...]
-
- > 2. Questions should be about the C language itself, not about
- > an implementation, a piece of hardware, or a software package.
- >
- >(These are approximate.)
- >
- >2 and 5 between them rule out the far keyword; either it is irrelevant
- >to the question, or the question is not about C.
-
- This is a group for asking questions about programming C, is it not?
- If this is a group only for discussing the purity of C and what is
- allowed and what is not allowed by the ANSI C standard, then I stand
- corrected.
-
- Here is the original post:
- "How do I pass a pointer to a funtion?
- The following is found in a program:
- void InstallTimer0(WORD period,void far (*func)(void));
- ... "
-
- It's a simple question, right? "HOW DO I PASS A POINTER TO A FUNCTION?"
- That looks like a straightforward C question to me. If you don't
- think that's a C question, what the heck did you think it was?
- A FORTRAN question? COBOL? Oh, let me guess: it's a 'DOS C question'
- not a 'unix C question' or an 'ANSI C question'. There, that
- explains it. I guess we should only be asking 'ANSI C questions'.
- Try explaining that to a programmer who is just learning C.
-
- In your own words the use of 'far' is 'irrelevant to the question'.
- Is it really too much to ask to ignore the 'far' keyword and answer
- the question? Ok, so far will break on a unix compiler. So what!?
- It's pretty trivial to take any non-conforming things like near,
- far etc and #define them to be empty. If you really are that naive
- that you don't know what they do and are afraid of eliminating
- them, then I suggest that you really are not a very experienced
- programmer. That happens when you live inside the (shrinking)
- unix world. FWIW, I program on many different o/s.
-
- The bottom line is: if you can help a programmer trying to learn
- C, do so. If you can't help, then keep silent and move on to
- the next article. But don't make yourself look like a fool by
- posting such elitist comments.
- --
- John A. Grant jagrant@emr1.emr.ca
- Airborne Geophysics
- Geological Survey of Canada, Ottawa
-